package com.lf.service.impl;


import com.lf.mapper.ProductCategoryMapper;
import com.lf.model.EbProductCategory;
import com.lf.service.ProductCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductCategoryServiceImpl implements ProductCategoryService {
    @Autowired
    private ProductCategoryMapper productCategoryMapper;
    @Override
    public List<EbProductCategory> list(int page,int pageSize){
        return productCategoryMapper.findByPage((page-1)*pageSize,pageSize);
    }
    @Override
    public int getMaxPage(int pageSize) {
        return productCategoryMapper.getMaxPage(pageSize);
    }
}
